#include <iostream>
#include <vector>
#include <string>

using namespace std;

class Solution {
public:
	vector<int> getRow(int rowIndex) {
		vector<int> data(rowIndex+1);
		if(rowIndex<0)
			return data;
		else{
			vector<int> prev=getRow(rowIndex-1);
			data[0]=1;
			data[rowIndex]=1;
			for(int i=1;i<rowIndex;++i)
			{
				data[i]=prev[i-1]+prev[i];
			}
		}
		return data;
	}
};

void display(vector<int> &data){
	for(int i=0;i<data.size();++i){
		cout<<data[i]<<",";
	}
	cout<<endl;
}

int main(){
	Solution s;
	int n;
	while(true){
		cin>>n;
		vector<int> data=s.getRow(n);
		display(data);
	}
}